import request from '../utils/request'

// 分页查询院区
export function listHospitalAreaByPage(params) {
  return request({
    url: '/sysHospitalArea/listHospitalAreaByPage',
    method: 'post',
    data: params
  })
}

// 保存或编辑院区
export function saveOrUpdateHospitalArea(params) {
  return request({
    url: '/sysHospitalArea/saveOrUpdateHospitalArea',
    method: 'post',
    data: params
  })
}

// 删除院区
export function deleteHospitalArea(params) {
  return request({
    url: '/sysHospitalArea/deleteHospitalArea',
    method: 'get',
    params
  })
}
